home *** CD-ROM | disk | FTP | other *** search
- /* %filename% -- dispatcher for windows and for modeless dialogs */
- /* Created %date% %time% by AppMaker */
-
- #include <Types.h>
- #include <Quickdraw.h>
- #include <Controls.h>
- #include <Dialogs.h>
- #include <Events.h>
- #include <Lists.h>
- #include <Menus.h>
- #include <TextEdit.h>
- %for each window gen include%
- %for each dialog gen includeModeless%
- #include "Globals.h"
- #include "Dispatcher.h"
-
- %If lang = MPW%
- #pragma segment Dispatcher
-
- %end if%
- /*----------*/
- void DoIdle (void)
- {
- } /*DoIdle*/
-
- /*----------*/
- void OpenWindows (Str255 fName,
- short vRefNum,
- short fRefNum)
- {
-
- %for each window gen open%
-
- } /*OpenWindows*/
-
- /*----------*/
- void CloseCurWindow (void)
- {
- %if lang = AUX%
- switch ((int) cur->windowKind) {
- %else%
- switch (cur->windowKind) {
- %endif%
- %for each window gen close%
-
- } /*switch*/
- } /*CloseCurWindow*/
-
- /*----------*/
- void DoControl (ControlHandle whichControl,
- short whichPart,
- Point where)
- {
- %if lang = AUX%
- switch ((int) cur->windowKind) {
- %else%
- switch (cur->windowKind) {
- %endif%
- %for each window gen track%
-
- } /*switch*/
- } /*DoControl*/
-
- /*----------*/
- void MouseInContent (Point where,
- short modifiers)
- {
- %if lang = AUX%
- switch ((int) cur->windowKind) {
- %else%
- switch (cur->windowKind) {
- %endif%
- %for each window gen mousein%
-
- } /*switch*/
- } /*MouseInContent*/
-
- /*----------*/
- void TypeInWindow (char ch)
- {
- %if lang = AUX%
- switch ((int) cur->windowKind) {
- %else%
- switch (cur->windowKind) {
- %endif%
- %for each window gen typein%
-
- } /*switch*/
- } /*TypeInWindow*/
-
- /*----------*/
- void UpdateContent (void)
- {
- %if lang = AUX%
- switch ((int) cur->windowKind) {
- %else%
- switch (cur->windowKind) {
- %endif%
- %for each window gen update%
-
- } /*switch*/
- } /*UpdateContent*/
-
- /*----------*/
- void ActivateContent (Boolean activate)
- {
- %if lang = AUX%
- switch ((int) cur->windowKind) {
- %else%
- switch (cur->windowKind) {
- %endif%
- %for each window gen activate%
-
- } /*switch*/
- } /*ActivateContent*/
-
- /*----------*/
- void ResizeContent (void)
- {
- %if lang = AUX%
- switch ((int) cur->windowKind) {
- %else%
- switch (cur->windowKind) {
- %endif%
- %for each window gen resize%
-
- } /*switch*/
- } /*ResizeContent*/
-
- /*----------*/
- pascal void ScrollWindow (short newValue,
- short oldValue)
- {
- %if lang = AUX%
- switch ((int) cur->windowKind) {
- %else%
- switch (cur->windowKind) {
- %endif%
- %for each window gen scroll%
-
- } /*switch*/
- } /*ScrollWindow*/
-
- /*----------*/
- void InitModelessDialogs (void)
- {
- %for each dialog gen init%
-
- } /*InitModelessDialogs*/
-
- /*----------*/
- void CloseModelessDialog (DialogPtr whichDialog)
- {
- %if lang = MPW%
- #pragma unused (whichDialog)
-
- %end if%
- %for each dialog gen close%
-
- } /*CloseModelessDialog*/
-
- /*----------*/
- Boolean FilterModeless (DialogPtr whichDialog,
- EventRecord *event,
- short *itemHit)
- {
- %if lang = MPW%
- #pragma unused (whichDialog, event, itemHit)
-
- %end if%
- %for each dialog gen filter%
-
- return (false);
- } /*FilterModeless*/
-
- /*----------*/
- void DoModelessItem (DialogPtr whichDialog,
- short itemNr)
- {
- %if lang = MPW%
- #pragma unused (whichDialog, itemNr)
-
- %end if%
- %for each dialog gen handleitem%
-
- } /*DoModelessItem*/
-
- /* Dispatcher */
-